import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s=sc.next();
        int len=s.length()/3;
        String s1=s.substring(0,len);
        System.out.println(s1);
        String s01=s.substring(2*len,3*len);
        System.out.println(s01);
        String s02=s.substring(len,2*len);
        System.out.println(s02);
//        StringBuilder sb=new StringBuilder(s01);
//        s01=sb.reverse().toString();
        for (int i = 0; i < s1.length()+1; i++) {
            String s2=s1.substring(0,i);
            String s3=s01.substring(s01.length()-i,s01.length());
            System.out.println(s2);
            System.out.println(s3);
            if(s2.equals(s3)){
                if (s02.equals(s3)) {
                    System.out.println(s2);
                }else {
                    System.out.println("No");
                    break;
                }
            }else {
                System.out.println("No");


            }

        }

    }
}
